/*
 *
 * -------------------------------------------------------------------------------------------------
 *                            COPYRIGHT(C) BOCO HEALTH 2016
 * -------------------------------------------------------------------------------------------------
 *
 * =================================================================================================
 *  *HISTORY
 *
 *      Tag                Date            Author           Description
 * =================================================================================================
 *      created            2017/1/17      caodailu        create
 * =================================================================================================
 *
 *
 */

package com.boco.familyuser.entity.main;

import android.os.Parcel;
import android.os.Parcelable;

public class UserEntity implements Parcelable {

    @Override
    public String toString() {
        return "UserEntity{" +
                "uid='" + uid + '\'' +
                ", realName='" + realName + '\'' +
                ", idCard='" + idCard + '\'' +
                ", signUser=" + signUser +
                ", mobile='" + mobile + '\'' +
                ", img='" + img + '\'' +
                ", sex='" + sex + '\'' +
                ", healthFileCode='" + healthFileCode + '\'' +
                ", age=" + age +
                ", dateOfBirthTimeStamp=" + dateOfBirthTimeStamp +
                '}';
    }

    /**
     * uid : 22f7c77e-193d-4a16-a5e2-e1cb74f3d2f2
     * realName : 王小伟
     * idCard : 110229190001010817
     * signUser : 0
     * mobile : 13008437239
     * img : upload/img/d640dc96.jpg
     * sex : 1
     * healthFileCode : 510108011000001401
     * age : 26
     * dateOfBirthTimeStamp : 631123200000
     */

    private String uid;
    private String realName;
    private String idCard;
    private int signUser;
    private String mobile;
    private String img;
    private String sex;
    private String healthFileCode;
    private int age;
    private long dateOfBirthTimeStamp;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public int getSignUser() {
        return signUser;
    }

    public void setSignUser(int signUser) {
        this.signUser = signUser;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHealthFileCode() {
        return healthFileCode;
    }

    public void setHealthFileCode(String healthFileCode) {
        this.healthFileCode = healthFileCode;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public long getDateOfBirthTimeStamp() {
        return dateOfBirthTimeStamp;
    }

    public void setDateOfBirthTimeStamp(long dateOfBirthTimeStamp) {
        this.dateOfBirthTimeStamp = dateOfBirthTimeStamp;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.uid);
        dest.writeString(this.realName);
        dest.writeString(this.idCard);
        dest.writeInt(this.signUser);
        dest.writeString(this.mobile);
        dest.writeString(this.img);
        dest.writeString(this.sex);
        dest.writeString(this.healthFileCode);
        dest.writeInt(this.age);
        dest.writeLong(this.dateOfBirthTimeStamp);
    }

    public UserEntity() {
    }

    protected UserEntity(Parcel in) {
        this.uid = in.readString();
        this.realName = in.readString();
        this.idCard = in.readString();
        this.signUser = in.readInt();
        this.mobile = in.readString();
        this.img = in.readString();
        this.sex = in.readString();
        this.healthFileCode = in.readString();
        this.age = in.readInt();
        this.dateOfBirthTimeStamp = in.readLong();
    }

    public static final Creator<UserEntity> CREATOR = new Creator<UserEntity>() {
        @Override
        public UserEntity createFromParcel(Parcel source) {
            return new UserEntity(source);
        }

        @Override
        public UserEntity[] newArray(int size) {
            return new UserEntity[size];
        }
    };
}
